/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.googlecode.jsimplemarket.wicket.pages;

import com.googlecode.jsimplemarket.model.Rand;
import com.googlecode.jsimplemarket.service.GenericService;
import org.apache.wicket.spring.injection.annot.SpringBean;

/**
 *
 * @author Alexandru.Codescu
 */
public class RandEditPage extends DefaultEditPage {
    @SpringBean(name = "genericService")
    private GenericService<Rand> service;
    
    private final Rand entity;
    
    public RandEditPage() {
        entity = new Rand();
        init();
    }
    
    public RandEditPage(Long id) {
        entity = service.getById(Rand.class, id);
        init();
    }
    
    private void init() {
        
    }
}
